package io.renren.modules.carinsurance.dto;

import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
 * 车辆保险类型表DTO类
 */
@Data
public class CarInsuranceDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @NotNull(message="id不能为空", groups = {UpdateGroup.class})
    private Long id;

    @ApiModelProperty(value = "车辆保险类型")
    @NotBlank(message="车辆保险类型不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String carInsuranceType;

    @ApiModelProperty(value = "保费规则")
    @NotBlank(message="保费规则不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String premium;

    @ApiModelProperty(value = "理赔规则")
    @NotBlank(message="理赔规则不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String claimRules;
}
